package cn.bgs.mapper;

import cn.bgs.pojo.VehicleMiddle;
import cn.bgs.pojo.VehicleNumber;
import cn.bgs.vo.VehicleAdd;
import cn.bgs.vo.CarInfoVo;
import cn.bgs.vo.CwnumVo;
import cn.bgs.vo.UserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 车位编号表 Mapper 接口
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Mapper
public interface VehicleNumberMapper extends BaseMapper<VehicleNumber> {

    List<VehicleAdd> appvehicleFind(Integer userId);


    VehicleMiddle findVehicleNumId(Integer vehicleCarId);

    void updateCarState(Integer vehicleCarId);

    void updateNumState(Integer vehicleNumberId);

    void deleteMyVehicle(Integer vehicleCarId);
    List<CwnumVo> selectnumInfo(CwnumVo cwnumVo);

    List<UserVo> selectAllUser(UserVo userVo);

    boolean insertPcInfo(CwnumVo cwnumVo);

    int delPcInfo(Integer vehicleNumberId);

    int updatePcInfo(CwnumVo cwnumVo);

    List<CwnumVo> PcInfo(CwnumVo cwnumVo);

    List<CarInfoVo> getPcarInfo();
}
